/**
 * @author SHIXINGXING
 */
/* 选择框的全选或者取消*/
function selectAll(){
    if (list.checkbox.checked == true) {
        for (var i = 0; i < list.ids.length; i++) 
            list.ids[i].checked = true;
        if (list.ids.length == null) 
            list.ids.checked = true;
    }
    else {
        for (var i = 0; i < list.ids.length; i++) 
            list.ids[i].checked = false;
        if (list.ids.length == null) 
            list.ids.checked = false;
    }
} 
      
// 控制用户键盘输入，只有数字才能输入
function checkInput(e) { 
    var k = window.event ? e.keyCode : e.which; 
    if (k == 0){ 
        return true; 
    } else { 
        return (((k >= 48) && (k <= 57))); 
    } 
}

/*用jquery实习选择框的全选或者取消
function selectAll(checkbox) {  
	$('input[type=checkbox]').attr('checked', $(checkbox).attr('checked'));  
}  */

